:root {
  --dark-color: #001259;
}

@font-face {
  font-family: NAURYZREDKEDS;
  src: url(../fonts/NAURYZREDKEDS.ttf);
}

@font-face {
  font-family: SpaceGro;
  src: url(../fonts/SpaceGrotesk-Medium.ttf);
}

.font-nauryz {
  font-family: NAURYZREDKEDS, sans-serif;
}

.font-space {
  font-family: SpaceGro, sans-serif;
}

body {
  /* background-image: url('../images/background.png'); */
  background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 15% 15%,
      rgba(255, 87, 34, 0.1) 0%,
      transparent 25%
    ),
    radial-gradient(
      circle at 85% 85%,
      rgba(255, 87, 34, 0.08) 0%,
      transparent 30%
    );
  z-index: -1;
}
/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
  background: #ff5722;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e64a19;
}

.glassmorphism {
  background: rgba(30, 30, 30, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Progress bar styles */
.progress-bar-container {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1); /* Warna latar belakang */
  border-radius: 4px;
  overflow: hidden;
  position: relative; /* Untuk posisi elemen anak */
}

.progress-bar {
  height: 100%;
  background-color: #f83e01; /* Warna progress */
  border-radius: 4px;
  width: 50%; /* Sesuaikan dengan progress yang sudah terisi */
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: glow-animation 2s infinite; /* Animasi glow */
}

@keyframes glow-animation {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.custom-file-input::-webkit-file-upload-button {
  visibility: hidden;
  width: 0;
}

.custom-file-input::before {
  content: "Choose Image";
  display: inline-block;
  background: #f83e01;
  color: white;
  border-radius: 6px;
  padding: 8px 16px;
  outline: none;
  white-space: nowrap;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
}

.custom-file-input:hover::before {
  background: #d63500;
}

.file-name {
  margin-left: 12px;
  font-size: 14px;
}

.template-option {
  position: relative;
  transition: transform 0.2s ease-in-out;
  cursor: pointer;
  background-color: black;
  padding-bottom: 10px;
  -webkit-touch-callout: none;
  /* Disable callout menu on long press */
  -webkit-user-select: none;
  /* Disable text selection */
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.template-option:hover {
  transform: translateY(-5px);
}

.template-option.selected {
  box-shadow: 0 0 0 3px #f83e01;
}

.template-option.selected::after {
  content: "✓";
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  background-color: #f83e01;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.locked-template {
  position: relative;
  overflow: hidden;
}

.locked-template img {
  filter: blur(8px);
  transition: filter 0.5s ease;
}

.locked-template.unlocked img {
  filter: blur(0);
}

.lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  transition: opacity 0.5s ease;
}

.lock-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

#intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #001259;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeOut 1s ease-in-out 2s forwards;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

#into-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeOut 5s ease-in-out 5s forwards;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.video-wrapper {
  scale: 0.6;
  animation: bounceIn 1s ease-out;
  will-change: transform;
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  20% {
    transform: scale(1.2);
    opacity: 1;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }

  90% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.glow-on-hover {
  box-shadow: 0 0 0 0 rgba(255, 87, 34, 0);
  transition: box-shadow 0.3s ease;
}

.glow-on-hover:hover {
  box-shadow: 0 0 10px 2px rgba(255, 87, 34, 0.4);
}

.btn-accent {
  background: linear-gradient(90deg, #ff5722 0%, #ff7043 100%);
  border: none;
  color: white;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
}

.btn-accent::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  transition: all 0.6s ease;
  z-index: -1;
}

.btn-accent:hover::before {
  left: 100%;
}

.btn-accent:hover {
  box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4);
  transform: translateY(-2px);
}

.btn-nonactive {
  transition: all 0.3s ease;
}
.btn-nonactive:hover {
  /* box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4); */
  transform: translateY(-2px);
}

.shine-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  transition: all 0.5s ease;
  z-index: -1;
}

.shine-effect:hover::before {
  left: 100%;
}

.custom-snackbar {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #222;
  color: #fff;
  overflow: hidden;
  z-index: 9998;
  height: 40px;
  display: flex;
  align-items: center;
  font-family: SpaceGro, sans-serif;
  font-size: 14px;
  border-top: 2px solid #444;
}

.custom-snackbar-track {
  white-space: nowrap;
  display: inline-block;
  animation: scroll-left 30s linear infinite;
  padding-left: 100%;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-100%);
  }
}
